# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=inundator
pkgver=0.5
pkgrel=9
groups=('blackarch' 'blackarch-misc' 'blackarch-spoof')
pkgdesc='An ids evasion tool, used to anonymously inundate intrusion detection logs with false positives in order to obfuscate a real attack.'
arch=('any')
license=('BSD')
url='http://inundator.sourceforge.net/'
depends=('nmap' 'perl' 'perl-net-cidr' 'perl-net-socks')
optdepends=('snort' 'tor')
source=("https://iweb.dl.sourceforge.net/project/$pkgname/$pkgver/${pkgname}_${pkgver}.tar.gz"
        "$pkgname.pl.patch")
sha512sums=('cb82024facb1aeaee1afc100e1c6cd49ae500411804d053f9bcf6b76bb34f64fda9f1c0f57328e76ae2798bb1e8667de4d5c35401d409e54cd3c195360f2384c'
            '767865c3b85e01b1cbffaaa28216fb300299c4871689ad9fa49713a76a6e9921fa0b35034129a61de99f9dccf7c0c07f23d4e005a3c8e086f28ac96ef4a9802a')

prepare() {
  patch -p1 < "$pkgname.pl.patch"
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

